﻿using Reporting.Domain.Enum;

namespace Reporting.API.DTOs.ProductionorderPlanDTO
{
    public class ProductionorderPlanResponse
    {
        /// <summary>
        /// 计划名称
        /// Productionplanid  生产计划
        /// </summary>
        public string? Planname { get; set; }
        /// <summary>
        /// 计划编号
        /// Productionplanid  生产计划
        /// </summary>
        public string? Plannumber { get; set; }
        /// <summary>
        /// 产品类型名称
        /// ProductTypeID   产品类型
        /// </summary>
        public string? ProductTypeName { get; set; }



        /// <summary>
        /// 生产工单ID
        /// </summary>
        public int Productionorderid { get; set; }

        /// <summary>
        /// 工单编号
        /// </summary>
        public string Workordernumber { get; set; }

        /// <summary>
        /// 工单名称
        /// </summary>
        public string Workordername { get; set; }

        /// <summary>
        /// 工单进度
        /// </summary>
        public int Workorderprogress { get; set; }  // 0-100

        /// <summary>
        /// 关联计划
        /// 外健（生产计划）
        /// </summary>
        public int Productionplanid { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string Productname { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string Productnumber { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specificationandmodel { get; set; }

        /// <summary>
        /// 产品类型
        /// 外健（产品类型）
        /// </summary>
        public int ProductTypeID { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Productionorderunit { get; set; }

        /// <summary>
        /// 需求日期
        /// </summary>
        public DateTime Requirementdate { get; set; }

        /// <summary>
        /// 计划数量
        /// </summary>
        public int Plannedproduction { get; set; }

        /// <summary>
        /// 实际生产数量
        /// </summary>
        public int Actualproductionquantity { get; set; }

        /// <summary>
        /// 计划开工时间
        /// </summary>
        public DateTime Scheduledstarttime { get; set; }

        /// <summary>
        /// 计划完工时间
        /// </summary>
        public DateTime Plannedendtime { get; set; }

        /// <summary>
        /// 实际开工时间
        /// </summary>
        public DateTime Actualstarttime { get; set; }

        /// <summary>
        /// 实际完工时间
        /// </summary>
        public DateTime Actualendtime { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public StateEnum Productionorderstate { get; set; }



    }
}
